package org.youdiversity.model.hibernate;

import java.util.Set;

import org.hibernate.annotations.Entity;
import org.hibernate.annotations.Table;
import org.youdiversity.model.Lesson;
import org.youdiversity.model.Subject;
import org.youdiversity.model.User;

@SuppressWarnings("serial")
@Entity
@Table(appliesTo = "subject")
public class SubjectHibernate extends BaseEntityHibernate implements Subject {

	private String name;
	private Set<Lesson> lessons;
	private User teacher;
	private Set<User> students;


	@Override
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String getName() {
		return name;
	}

	@Override
	public Set<Lesson> getLessons() {
		return lessons;
	}
	
	@Override
	public void setLessons(Set<Lesson> lessons) {
		this.lessons = lessons;
	}

	@Override
	public User getTeacher() {
		return teacher;
	}

	@Override
	public void setTeacher(User teacher) {
		this.teacher = teacher;
	}

	@Override
	public Set<User> getStudents() {
		return students;
	}

	@Override
	public void setStudents(Set<User> students) {
		this.students = students;
	}
	
	
}
